import React, { Component } from 'react'
import { Link, Route } from 'react-router-dom'
import Like from './like.js'
import Super from './super.js'

export default class User extends Component {
  state = {
    value: '',
  }
  render() {
    return (
      <div>
        用户
        <div>
          <Link to="/home">首页</Link>
          <Link to="/user/like">关注</Link>
          <Link to="/user/super">点赞</Link>
        </div>
        <Route path="/user/like" component={Like}></Route>
        <Route path="/user/super" component={Super}></Route>
      </div>
    )
  }
}
